-- GENERATED SPELL FOR [Riverpaw Mongrel] --


function spell0_123(pUnit, Event) --@Spirit Decay,n/a--
pUnit:FullCastSpellOnTarget(8016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_123', 2000, 1)
end

function Sorts_123(pUnit, Event)
local choix_sorts_123 = math.random(0, 0)
if choix_sorts_123 == 0 then
pUnit:RegisterEvent('spell0_123', 1, 1)
end
end

function mob123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_123', math.random(1500, 3000), 1)
end

function mob123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(123, 1, 'mob123_Action')
RegisterUnitEvent(123, 2, 'mob123_Leave')
RegisterUnitEvent(123, 3, 'mob123_Kill')
RegisterUnitEvent(123, 4, 'mob123_Die')
